import request from '@/config/axios'

// 获取欢迎语配置列表
export const getWelcomeConfigSimpleList = async (params) => {
  return await request.get({ url: `/service/welcome-config/page`, params })
}

// 创建欢迎语配置
export const welcomeConfigCreate = async (data) => {
  return await request.post({ url: `/service/welcome-config/create`, data })
}

// 更新欢迎语配置
export const welcomeConfigUpdate = async (data) => {
  return await request.put({ url: `/service/welcome-config/update`, data })
}

// 删除欢迎语配置
export const welcomeConfigDelete = async (id: number) => {
  return await request.delete({ url: `/service/welcome-config/delete?id=` + id })
}
// 欢迎语详情
export const getWelcomeConfigDetail = async (id) => {
  return await request.get({ url: `/service/welcome-config/get?id=${id}` })
}
